package com.group9.service.impl;

import com.group9.mapper.ActivityInfoMapper;
import com.group9.pojo.ActivityInfo;
import com.group9.pojo.ActivityInfoExample;
import com.group9.service.ActivityInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by Lcouncillor on 2020/5/14.
 */
@Service
public class ActivityInfoServiceImpl implements ActivityInfoService {

    @Autowired
    ActivityInfoMapper activityInfoMapper;

    @Override
    @Transactional(readOnly = true)
    public ActivityInfo selectByActivityId(Short activityId) {
        return activityInfoMapper.selectByPrimaryKey(activityId);
    }
}
